export default function(role) {
  switch (role) {
    case 1: return 'admin'
    case 2: return 'doctor'
    case 3: return 'checker'
    case 4: return 'godown'
  }
  return
}

export function roleC(role) {
  switch (role) {
    case 1: return '管理员'
    case 2: return '医生'
    case 3: return '收银'
    case 4: return '仓管'
  }
  return
}

export function sexC(sex) {
  switch (sex) {
    case 1: return '男'
    case 2: return '女'
    default : return '未知'
  }
}

export function typePrescriptionC(sex) {
  switch (sex) {
    case 1: return '诊断药单'
    case 2: return '临时药单'
    default : return '未知药单'
  }
}

export function commissionType(sex) {
  switch (sex) {
    case 1: return '固定提成'
    case 2: return '比例提成'
    default : return '无提成'
  }
}

